<?php

class Config {

    private static $instance = null;
    private $data = array();

    private function __construct() {
        include '../icloud_files/config/app.php';
        include '../icloud_files/config/database.php';
        $this->data = $cnf;
    }

    public function get_config($key) {
        return $this->data[$key];
    }

    public static function get_instance() {
        if(self::$instance == null) {
            self::$instance = new Config();
        }
        return self::$instance;
    }

}